<template>
  <div :class="{ 'custom-card': isCard }">
    <slot></slot>
  </div>
</template>

<script setup lang="ts">
  defineProps({
    isCard: {
      type: Boolean,
      default: true
    }
  })
</script>

<style lang="less" scoped>
  .custom-card {
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border-radius: 6px;
    background-color: #fff;
    color: rgb(51, 54, 57);
    padding: 15px 20px;
    word-break: break-word;
    border: 1px solid rgb(239, 239, 245);

    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .custom-card:hover {
    box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.08),
      0 3px 6px 0 rgba(0, 0, 0, 0.06), 0 5px 12px 4px rgba(0, 0, 0, 0.04);
  }
</style>
